<?php
// +----------------------------------------------------------------------
// | 07FLYCRM [基于ThinkPHP5.0开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2021 http://www.07fly.xyz
// +----------------------------------------------------------------------
// | Professional because of focus  Persevering because of happiness
// +----------------------------------------------------------------------
// | Author: 开发人生 <goodkfrs@qq.com>
// +----------------------------------------------------------------------

namespace app\workflow\model;

use think\Db;

/**
 * 业务关联表=》模型
 */
class WorkflowBusiness extends WorkflowBase
{

    //0=未结束，1=结束
    public function is_over_status($key = '')
    {
        $data = array(
            "0" => array(
                'name' => '审批中',
                'html' => '<span class="label">审批中</span>',
            ),
            "1" => array(
                'name' => '已结束',
                'html' => '<span class="label label-info">已结束</span>',
            ),
        );
        return (array_key_exists($key, $data)) ? $data[$key] : $data;
    }

}
